function handleSessionResponse(response) {
	if (!response.session) {
		return;
	} else {
		window.location.href = "http://delta-tomcat-vm.cs.tau.ac.il:40767//lobby.html";
	}
}

$(document).ready(function() {
	
	FB.init( {
		appId: '126564364026625',
		status : true, 
		cookie : true, 
		xfbml : true
	});
	
});
	
function myLogin() {
	FB.login(handleSessionResponse);
}